# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>

pkgname=m4rie
pkgver=20200125
pkgrel=2
pkgdesc='Algorithms for linear algebra over F_2^e'
arch=(loong64 x86_64)
url='https://bitbucket.org/malb/m4rie'
license=(GPL)
depends=(m4ri)
source=(https://bitbucket.org/malb/m4rie/downloads/$pkgname-$pkgver.tar.gz)
sha256sums=('7f3107f7cd10f6c22d9663d9536e1af2f551e10183601852a60d760918caf58d')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr \
    --enable-openmp
  make
}

check() {
  cd $pkgname-$pkgver
  make check
}

package() {
  cd $pkgname-$pkgver
  make install DESTDIR="$pkgdir"
}
